/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.tenant.mp.TenantEntity;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * 质检工单表实体类
 *
 * @author ysq
 * @since 2023-11-27
 */
@Data
@TableName( value = "blade_maintain_plan_check",autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "MaintainPlanCheck对象", description = "质检工单表")
public class MaintainPlanCheck extends TenantEntity {

	private static final long serialVersionUID = 1L;


	@ApiModelProperty(value = "1:保养质检，2:重复故障质检，3:维保移交质检4:安装移交质检5:常规质检")
	private Integer checkType;


	/**
	 * 1:非常紧急2:紧急3:普通4:较低
	 */
	@ApiModelProperty(value = "1:非常紧急2:紧急3:普通4:较低")
	private Integer emerProcType;
	/**
	 * 工单描述
	 */
	@ApiModelProperty(value = "工单描述")
	private String planDesc;
	/**
	 * 工单id
	 */
	@ApiModelProperty(value = "工单id")
	private Long planId;
	/**
	 * 描述图片和视频
	 */
	@ApiModelProperty(value = "描述图片和视频")
	private String otherUrl;
	/**
	 * word附件
	 */
	@ApiModelProperty(value = "word附件")
	private String extWordUrl;
	/**
	 * 关联工单总数
	 */
	@ApiModelProperty(value = "关联工单总数")
	private Integer childCounts;
	/**
	 * 问题点总数
	 */
	@ApiModelProperty(value = "问题点总数")
	private Integer problemCounts;
	/**
	 * 1:质检通过，2:不通过
	 */
	@ApiModelProperty(value = "1:质检通过，2:不通过")
	private Integer checkStatus;

	/**
	 * 工单计划执行日期
	 */
	@ApiModelProperty(value = "工单计划执行日期")
	@TableField(exist = false)
	private Date planDate;

	@ApiModelProperty(value = "描述图片和视频")
	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<HashMap<String, String>> passUrl;

	@ApiModelProperty(value = "工单描述")
	private String passDesc;

}
